<%-include ../public/header%>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
<!--<![endif]-->


<%-include ../public/navbar%>

<%-include ../public/nav%>


<div class="content">

    <div class="container-fluid">
        <div class="row-fluid" style="padding-top:20px;">
            <h1>用户管理</h1>

            <a class="btn btn-info" href="<%=host%>admin/user/add">增加用户</a>
            <table style="text-align:center" class="table table-bordered table-condensed">
                <thead>
                    <tr>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>性别</th>
                    <th>密码</th>
                    <th>添加时间</th>
                    <th>操作</th>
                    </tr>
                </thead>

                <tbody>
                    <%for (var i=0;i<list.length;i++) {%>
                <tr>
                    <td>
                       <%=list[i].username%>
                    </td>
                    <td>
                        <%=list[i].age%>
                    </td>
                    <td>
                        <%if(list[i].sex=="1"){%>
                            男
                        <%}else {%>
                            女
                        <%}%>
                    </td>
                    <td>
                        <%=list[i].password%>
                    </td>

                    <td>
                        <%=list[i].add_time%>
                    </td>
                    <td>
                        <a  href="<%=host%>admin/user/edit?id=<%=list[i]._id%>"  class="btn btn-info">编辑</a>　　


                        <a  href="<%=host%>admin/user/delete?id=<%=list[i]._id%>"  class="btn btn-danger">删除</a>
                    </td>
                </tr>
                <%}%>

                </tbody>
            </table>

        </div>
    </div>
</div>



<script src="<%=host%>lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function() {
        $('.demo-cancel-click').click(function(){return false;});
    });
</script>

</body>
</html>


